import { Coins, CalendarCheck, Flame } from 'lucide-react'; import { UserProfileDto } from '@/types/account/profile'; type Props = { profile: UserProfileDto; }; export default function UserProfileStats({ profile }: Props) { const showDonation = profile.totalDonatedAmount !== null && profile.totalDonatedAmount !== undefined; return (
{showDonation && (
후원 총액 {(profile.totalDonatedAmount ?? 0).toLocaleString()} P
)}
출석 수 {profile.attendanceCount.toLocaleString()}일
개근 일수 {profile.consecutiveDays.toLocaleString()}일
); }